package com.ecfront.dwr;

import javax.servlet.http.HttpSession;
import com.ecfront.util.Constants;
import uk.ltd.getahead.dwr.WebContextFactory; 

public class VercodeValdate {

	HttpSession session = WebContextFactory.get().getSession();
	
	public boolean isRightVercode(String vercode){
		try{
			String ver = session.getValue(Constants.LOGIN_CHECK_IMG).toString();
			if(ver.equalsIgnoreCase(vercode)){
				return true;
			}else{
				return false;
			}
		}catch (Exception e) {
			return false;
		}
	}
	
}
